package com.bagu.bean4;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Client {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        for (String beanName:context.getBeanDefinitionNames()){
            System.out.println(beanName+":"+context.getBean(beanName));
        }
    }

}